<?php
/**
 * ExtFunctionItemBase class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftwareB.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */
abstract class ExtFunctionItemBase extends ExtWidget
{
    private $body = null;

    public function parseNode(ExtHTMLParserNode $node,
        ExtASTWalker $astwalker)
    {
        parent::parseNode($node, $astwalker);
        $this->body = $this->JSImply($this->evaluateValue($this->parseScriptProperty('body', null, $node, $astwalker)));
    }

    public function createContainer(ExtHTMLParserNode $node)
    {
        $node->shiftUp();
        return null;
    }

    public function renderConfig($asobject=true)
    {
        $this->evaluateValues();
        return array('name' => $this->getName(),
            'value' => $this->body
        );
    }
}

?>
